ModEditor.Windows.ModControl = ModEditor.GUI.BasicWindow:New()
ModEditor.Windows.ModControl:Apply({{"Caption","ModEditor"},{"X",300},{"Y",10},{"Width",250},{"Height",500},{"ShowFullWindow",true},{"Visible",true}})

ModEditor.Windows.ModControl.SaveButton = ModEditor.GUI.Button:New(ModEditor.Windows.ModControl)
function ModEditor.Windows.ModControl.SaveButton:OnClick()
	ModEditor.SaveMod("test.tbm")
end
ModEditor.Windows.ModControl.SaveButton:Apply({{"X",10},{"Y",30},{"Width",82},{"Height",20},{"Caption","Save mod"}})

ModEditor.Windows.ModControl:AddControl(ModEditor.Windows.ModControl.SaveButton)
ModEditor.Windows.Add(ModEditor.Windows.ModControl)
